package com.csg.ioms.controller;

import com.csg.ioms.enums.SchedulerStateEnums;
import com.csg.ioms.result.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *     远程调用测试
 * </p>
 *
 * @author George Chan
 * @version 1.0
 * @date 2020/3/24 16:41
 * @since JDK 1.8
 */
@RestController
@RequestMapping("/api/remote")
public class RemoteController {
    private static final Logger LOGGER = LoggerFactory.getLogger(RemoteController.class);

    /**
     * 远程调用测试
     * @return
     */
    @RequestMapping(value = "/remote", method = RequestMethod.GET)
    public Result remote() {
        return new Result(true, SchedulerStateEnums.SUCCESS.getCode(), SchedulerStateEnums.SUCCESS.getMessage());
    }
}
